home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_45.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  138KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | poster | reckoner | sky | windowpane
OCR: WW HNDOW EOU $AHrs Guide Macintosh Assembly Language Programming 43age DISPOSE WINDOW EQU $A914 TEXTFONT: EQU $A887 TEXTSIZE: EQU $A88A These are couple dragged out of io lib.s They are given labels so we can use the names instead of the numbers As everything in machine code they are just numbers For example sysbeep equates to $A9C8. So? Well have a look at this: SYSBEEP EQU $A9C8 START: MOVE #1,-SP DC.W SYSBEEP RTS Would you believe this makes your Mac go beep? Try it up Fantasm, assemble example6. into ram and run **Note Fantasm comes with an include tie that equates every current trap number to its Its an incredibly simple program but illustrates a very powerful fact The operating system calls on Mac are called "TRAPS" They take advantage ofa 00089 feature that allow the user to define ...